class HasStatic{
    public static int x = 100;
    public static void add(){
        x++;
    }
}
class A{
    public static void main(String[] args){
        HasStatic hs1 = new HasStatic();
        hs1.x++;
        HasStatic hs2 = new HasStatic();
        hs2.x++;
        hs1=new HasStatic();
        hs1.x++;
        HasStatic.x--;
        HasStatic.add();
        System.out.println( "x="+HasStatic.x );
    }
}